import useRequest from '@/hooks/useRequest';
const { request, post, get } = useRequest();

//获取发布协同表单
export const getQueryPubFields = (data ?: any) => {
	return request({
		url: 'lawyer/query/get_pub_fields',
		method: 'get',
		data: data
	});
};
// 获取协同分类列表
export const getQueryCateList = (data ?: any) => {
	return request({
		url: 'lawyer/query/get_cate_list',
		method: 'get',
		data: data
	});
};
// 发布协同
export const doQueryPubOrder = (data ?: any) => {
	return request({
		url: 'lawyer/query/pub_order',
		method: 'post',
		data: data
	});
}
// 协同支付
export const doQueryPayment = (data ?: any) => {
	return request({
		url: 'lawyer/query/payment',
		method: 'post',
		data: data
	});
}
// 我发布的协同
export const getMyPubQueryOrder = (data ?: any) => {
	return request({
		url: 'lawyer/query/my_pub_order_list',
		method: 'post',
		data: data
	});
}
// 接单广场
export const getQueryMarketOrderList = (data ?: any) => {
	return request({
		url: 'lawyer/query/market_order_list',
		method: 'post',
		data: data
	});
}
// 协同详情
export const getQueryOrderInfo = (data ?: any) => {
	return request({
		url: 'lawyer/query/query_order_info',
		method: 'post',
		data: data
	});
}


// 接单
export const doQueryReceiveOrder = (data ?: any) => {
	return request({
		url: 'lawyer/query/receive_order',
		method: 'post',
		data: data
	});
}
// 我的接单
export const getQueryMyReceiveList = (data ?: any) => {
	return request({
		url: 'lawyer/query/my_receive_order_list',
		method: 'post',
		data: data
	});
}

// 获取提交表单
export const getQueryMyReceiveSubmitFields = (data ?: any) => {
	return request({
		url: 'lawyer/query/get_receive_fields',
		method: 'get',
		data: data
	});
}


export const doSaveOrderInfo = (data ?: any) => {
	return request({
		url: 'lawyer/query/save_order_info',
		method: 'post',
		data: data
	});
}
// 完成提交协同
export const doFinishOrder = (data ?: any) => {
	return request({
		url: 'lawyer/query/finish_order',
		method: 'post',
		data: data
	});
}

// 发布者订单确认 
export const doQueryComfirmFinish = (data ?: any) => {
	return request({
		url: 'lawyer/query/comfirm_finish',
		method: 'post',
		data: data
	});
}

// 发布者售后 
export const doQueryOrderBack = (data ?: any) => {
	return request({
		url: 'lawyer/query/order_back',
		method: 'post',
		data: data
	});
}

// 售后详情 
export const getQueryOrderBackInfo = (data ?: any) => {
	return request({
		url: 'lawyer/query/query_order_back_info',
		method: 'post',
		data: data
	});
}